package com.mall.service.impl;

import com.mall.entity.MmallOrder;
import com.mall.mapper.MmallOrderMapper;
import com.mall.service.MmallOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ppmall
 * @since 2021-09-19
 */
@Service
public class MmallOrderServiceImpl extends ServiceImpl<MmallOrderMapper, MmallOrder> implements MmallOrderService {

    @Override
    public BigDecimal getTotalPaymentByCategoryId(Integer categoryId, Date beginTime, Date endTime) {
        return baseMapper.getTotalPaymentByCategoryId(categoryId, beginTime, endTime);
    }

}
